<?php
class ERequestUserAgent extends CBehavior{
	public function isMobile(){
		return $this->isIPhone();
	}

	public function isIPhone(){
		$request=$this->getOwner();
		$agent=$request->getUserAgent();
		return strpos($agent,"iPhone")>0;
	}
}